﻿using System;

namespace WindowsPhoneMvp.Mocks
{
    public class MockView : IView
    {
        public bool ThrowExceptionIfNoPresenterBound
        {
            get { return true; }
        }

        public event EventHandler Load = delegate { };
        public object DataContext { get; set; }

        public void InvokeLoad()
        {
            Load(this, EventArgs.Empty);
        }
    }
}
